package net.xiduth.game.player.dialogues;

import net.xiduth.utils.ShopsHandler;

public class KaqemeexShop extends Dialogue {

	private int npcId;

	@Override
	public void start() {
		npcId = (Integer) parameters[0];
		sendNPCDialogue(npcId, 9827,
				"Hello, I'm Kaqemeex. I sell items for Herblore. If you can't",
				"what you are looking for, try my second shop.");
	}

	@Override
	public void run(int interfaceId, int componentId) {
		switch (stage) {
		case -1:
			stage = 0;
			sendOptionsDialogue(SEND_DEFAULT_OPTIONS_TITLE,
					"First Herblore Store", "Second Herblore Store",
					"Nevermind");
			break;
		case 0:
			if (componentId == OPTION_1) {
				ShopsHandler.openShop(player, 5);
				end();
			} else if (componentId == OPTION_2) {
				stage = 1;
				ShopsHandler.openShop(player, 6);
				end();
			} else if (componentId == OPTION_3)
				end();
			break;
		default:
			end();
			break;
		}

	}

	@Override
	public void finish() {
		// TODO Auto-generated method stub

	}

}
